package com.example.shushiyunsst.fragment.main.home.recycler.bean;

import android.text.TextUtils;

/**
 * {
 * "nid": 2,
 * "title": "公告1",
 * "content": "福利1",
 * "sort": 1,
 * "createTime": "2020-09-11 16:14:29"
 * }
 */

public class NotifyEntity implements HomeEntity {

    private int nid;

    private String title;

    private String content;

    private int sort;

    private String createTime;

    private int mSpanSiz;

    public int getNid() {
        return nid;
    }

    public void setNid(int nid) {
        this.nid = nid;
    }

    public String getTitle() {
//        if (TextUtils.isEmpty(title)) return content;
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        if (TextUtils.isEmpty(content)) return title;
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public int getSpanSiz() {
        return mSpanSiz;
    }

    @Override
    public void setSpanSiz(int spanSiz) {
        mSpanSiz = spanSiz;
    }

    @Override
    public int getItemType() {
        return Notify_TYPE;
    }


}
